package com.geek.gkfood.ctrl.facade.abs;

import com.geek.gkdoc.facade.DocField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <h1>管控请求抽象类。</h1><br/>
 *
 * <h1><br/><a href="https://u.geekbang.org/subject/arch3/100614201">Java 业务架构实战营：https://u.geekbang.org/subject/arch3/100614201</a></h1><br/><h1><a href="https://gitee.com/ylimhhmily/BizArchPracticeCamp">Java 业务架构实战营代码地址：https://gitee.com/ylimhhmily/BizArchPracticeCamp</a></h1><br/><h1><a href="https://u.geekbang.org/subject/java4th/1001148?source=app_share">高级 Java 工程体系课 2023 版：https://u.geekbang.org/subject/java4th/1001148?source=app_share</a></h1><br/><h1><a href="https://time.geekbang.org/column/intro/100312101?tab=catalog">Dubbo 源码剖析与实战：https://time.geekbang.org/column/intro/100312101?tab=catalog</a></h1>
 *
 * @author hmilyylimh
 *         ^_^
 * @version 0.0.1
 *         ^_^
 * @date 2023/9/29
 *
 */
@Setter
@Getter
@ToString
public class AbstractRequest implements Serializable {

    private static final long serialVersionUID = -8030861476487733226L;

    @NotBlank
    @DocField(desc = "来源系统", required = true, sampleVal = "gkfgw-http", version = "20230901")
    private String fromSystem;

    @NotBlank
    @DocField(desc = "当前登录用户的ID", extra = "各业务接口根据实际情况酌情选取，不过绝大多数业务接口还是需要该字段的", required = false, sampleVal = "1000000001", version = "20230901")
    private String currUserId;

    @NotBlank
    @DocField(desc = "当前登录用户的姓名", extra = "各业务接口根据实际情况酌情选取，不过绝大多数业务接口还是需要该字段的", required = false, sampleVal = "张三", version = "20230901")
    private String currUserName;
}